﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace AntikCompta.Data
{
    [XmlRoot("ModePayement")]
    [XmlInclude(typeof(Cheque)), XmlInclude(typeof(Especes))]
    public abstract class ModePayement
    {
        protected String mNom;

        public ModePayement()
        {
        }

        [XmlIgnore]
        public String Nom
        {
            get { return mNom; }
            set { mNom = value; }
        }

    }

    public class Cheque : ModePayement
    {
        public Cheque()
        {
            mNom = "Chèque";
        }
    }

    public class Especes : ModePayement
    {
        public Especes()
        {
            mNom = "Espèces";
        }
    }
}
